<%@ page contentType="text/html;charset=UTF-8" language="java" %>
<html>
<head>
    <title>作业五第五题</title>
</head>
<script type="text/javascript">
    function reSet() {
        document.getElementById("img").setAttribute("src", "");
    }
</script>
<body>

<%--<form method="post" action="/work5question5">--%>
    <%--<input type="submit" value="查看星空图片" />--%>
<%--</form>--%>
<button  type="button" onclick="javascript:window.location='/work5question5'">查看星空图片</button>
<button  type="button" onclick="reSet()">隐藏星空图片</button>
<div>
    <img src="${imagePath}" id="img">
</div>

</body>
</html>
